<?php

Yii::import('zii.widgets.CPortlet');

class LatestArticles extends CPortlet
{
	public function getLatestArticles()
	{
		return Post::model()->getLatestArticles();
	}

	protected function renderContent()
	{
		$this->render('latestArticles');
	}
}